<?php /* Smarty version 2.6.18, created on 2012-05-17 23:20:30
         compiled from common/header.tpl */ ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <title>vfriend.info</title>
        <link href="<?php echo @HOST_STATICS; ?>
css/vfriend.css?<?php echo @CSS_UPDATE; ?>
" rel="stylesheet" type="text/css" media="all" />
        <link href="<?php echo @HOST_STATICS; ?>
css/font.css?<?php echo @CSS_UPDATE; ?>
" rel="stylesheet" type="text/css" media="all"/>
        <link href="<?php echo @HOST_STATICS; ?>
css/common.css?<?php echo @CSS_UPDATE; ?>
" rel="stylesheet" type="text/css" media="all"/>         
        <?php if ($this->_tpl_vars['AppUI']->id <= 0): ?>
        <link href="<?php echo @HOST_STATICS; ?>
css/login.css?<?php echo @CSS_UPDATE; ?>
" rel="stylesheet" type="text/css" media="all"/>
        <?php endif; ?>
        <link href="<?php echo @HOST_STATICS; ?>
css/jquery-ui.css?<?php echo @CSS_UPDATE; ?>
" rel="stylesheet" type="text/css" media="all"/>
        <?php if (is_array ( $this->_tpl_vars['arrCSS'] )): ?>
            <?php unset($this->_sections['i']);
$this->_sections['i']['name'] = 'i';
$this->_sections['i']['loop'] = is_array($_loop=$this->_tpl_vars['arrCSS']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['i']['show'] = true;
$this->_sections['i']['max'] = $this->_sections['i']['loop'];
$this->_sections['i']['step'] = 1;
$this->_sections['i']['start'] = $this->_sections['i']['step'] > 0 ? 0 : $this->_sections['i']['loop']-1;
if ($this->_sections['i']['show']) {
    $this->_sections['i']['total'] = $this->_sections['i']['loop'];
    if ($this->_sections['i']['total'] == 0)
        $this->_sections['i']['show'] = false;
} else
    $this->_sections['i']['total'] = 0;
if ($this->_sections['i']['show']):

            for ($this->_sections['i']['index'] = $this->_sections['i']['start'], $this->_sections['i']['iteration'] = 1;
                 $this->_sections['i']['iteration'] <= $this->_sections['i']['total'];
                 $this->_sections['i']['index'] += $this->_sections['i']['step'], $this->_sections['i']['iteration']++):
$this->_sections['i']['rownum'] = $this->_sections['i']['iteration'];
$this->_sections['i']['index_prev'] = $this->_sections['i']['index'] - $this->_sections['i']['step'];
$this->_sections['i']['index_next'] = $this->_sections['i']['index'] + $this->_sections['i']['step'];
$this->_sections['i']['first']      = ($this->_sections['i']['iteration'] == 1);
$this->_sections['i']['last']       = ($this->_sections['i']['iteration'] == $this->_sections['i']['total']);
?>
            	<link href="<?php echo $this->_tpl_vars['arrCSS'][$this->_sections['i']['index']]; ?>
?<?php echo @CSS_UPDATE; ?>
" rel="stylesheet" type="text/css" media="all"/> 
            <?php endfor; endif; ?>
        <?php endif; ?>               
        <script type="text/javascript" language="javascript">
			var HOST_VFRIEND 		= '<?php echo @HOST_VFRIEND; ?>
';
			var HOST_STATICS	 	= '<?php echo @HOST_STATICS; ?>
';
			var	strMsg				= '<?php echo $this->_tpl_vars['strMsg']; ?>
';			
			var	strError			= '<?php echo $this->_tpl_vars['strError']; ?>
';
			var strPhpController	= '<?php if (isset ( $this->_tpl_vars['strController'] )): ?><?php echo $this->_tpl_vars['strController']; ?>
<?php endif; ?>';
			var strPhpAction		= '<?php if (isset ( $this->_tpl_vars['strAction'] )): ?><?php echo $this->_tpl_vars['strAction']; ?>
<?php endif; ?>';
			var strGeneralCode		= '<?php echo session_id(); ?>';			
       	</script>          
        <script type="text/javascript" language="javascript" src="<?php echo @HOST_STATICS; ?>
js/library/jquery-1.7.1.js"></script>
        <?php if ($this->_tpl_vars['arrJSBefore']): ?> 	
            <?php unset($this->_sections['i']);
$this->_sections['i']['name'] = 'i';
$this->_sections['i']['loop'] = is_array($_loop=$this->_tpl_vars['arrJSBefore']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['i']['show'] = true;
$this->_sections['i']['max'] = $this->_sections['i']['loop'];
$this->_sections['i']['step'] = 1;
$this->_sections['i']['start'] = $this->_sections['i']['step'] > 0 ? 0 : $this->_sections['i']['loop']-1;
if ($this->_sections['i']['show']) {
    $this->_sections['i']['total'] = $this->_sections['i']['loop'];
    if ($this->_sections['i']['total'] == 0)
        $this->_sections['i']['show'] = false;
} else
    $this->_sections['i']['total'] = 0;
if ($this->_sections['i']['show']):

            for ($this->_sections['i']['index'] = $this->_sections['i']['start'], $this->_sections['i']['iteration'] = 1;
                 $this->_sections['i']['iteration'] <= $this->_sections['i']['total'];
                 $this->_sections['i']['index'] += $this->_sections['i']['step'], $this->_sections['i']['iteration']++):
$this->_sections['i']['rownum'] = $this->_sections['i']['iteration'];
$this->_sections['i']['index_prev'] = $this->_sections['i']['index'] - $this->_sections['i']['step'];
$this->_sections['i']['index_next'] = $this->_sections['i']['index'] + $this->_sections['i']['step'];
$this->_sections['i']['first']      = ($this->_sections['i']['iteration'] == 1);
$this->_sections['i']['last']       = ($this->_sections['i']['iteration'] == $this->_sections['i']['total']);
?>
                <script type="text/javascript" language="javascript" src="<?php echo $this->_tpl_vars['arrJSBefore'][$this->_sections['i']['index']]; ?>
?<?php echo @JS_UPDATE; ?>
"></script>
            <?php endfor; endif; ?>
        <?php endif; ?>
    </head>
    <body>
    	 <?php if ($this->_tpl_vars['AppUI']->id <= 0 && $this->_tpl_vars['strController'] == 'index' && $this->_tpl_vars['strAction'] == 'index'): ?>
            <div id="bgHomepage">
                <div class="homeMid">&nbsp;</div>
                <div class="homeBot">&nbsp;</div>
            </div>
        <?php endif; ?>   
        <div id="wrapperVfriend">               
            <div id="vfriendHeader" class="logOut">
                <div id="vfriendHeaderContainer"> 
                    <?php if ($this->_tpl_vars['AppUI']->id == 0): ?>
                        <?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "common/box-login.tpl", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
                    <?php endif; ?>
                    <div id="vfriendHeaderContent">                	
                        <div class="logoVfriend">
                                                    </div>
                        <div class="loginVfriend">
                            <?php if ($this->_tpl_vars['AppUI']->id == 0): ?>        
                           		<a href="#" onclick="javascript:showFormLogin();" title="Đăng nhập bằng tài khoản có sẵn."><img src="<?php echo @HOST_STATICS; ?>
img/btn/login-open.png" alt="show login" width="45" height="35" border="0" class="loginOpen"/></a>
                           	<?php else: ?>
                            	<div class="lineTop">
                            		<ul>
                                    	<li class="firstChild"><a href="<?php echo @HOST_VFRIEND; ?>
index/logout">Thoát</a></li>
                                        <li><a href="<?php echo @LINK_ACCOUNT_INDEX; ?>
">Thiết lập</a></li>
                                        <li>Xin chào <a href="<?php if ($this->_tpl_vars['AppUI']->username != ''): ?><?php echo @HOST_VFRIEND; ?>
<?php echo $this->_tpl_vars['AppUI']->username; ?>
<?php else: ?><?php endif; ?>" class="welCome"><strong><?php if (isset ( $this->_tpl_vars['AppUI']->username ) && $this->_tpl_vars['AppUI']->username != ''): ?><?php echo $this->_tpl_vars['AppUI']->username; ?>
<?php else: ?><?php echo $this->_tpl_vars['AppUI']->fullnamevn; ?>
<?php endif; ?></strong></a></li>
                                    </ul>
                                </div>
                                <div class="menu">
                                	<ul class="dropdown">
                                    	<li>
                                        	<h3 class="home">
                                                <a href="<?php echo @HOST_VFRIEND; ?>
">
                                                    <img src="<?php echo @HOST_STATICS; ?>
img/icon/home.png" alt="Homepage <?php echo @DOMAIN; ?>
" border="0" width="19" height="18" />
                                                </a>
                                            </h3>
                                       	</li>
                                    	<li>
                                        	<h3><a href="<?php echo @LINK_MEMBER_INDEX; ?>
">Kết bạn</a></h3>                                            
                                       	</li>
                                        <li>
                                        	<h3><a href="#">Tin tức</a></h3>
                                       	</li>
                                        <li>
                                        	<h3><a href="#">Giải trí</a></h3>                                            
                                        </li>
                                        <li>
                                        	<h3><a href="#">Danh bạ</a></h3>
                                        </li>
                                        <li>
                                        	<h3><a href="#">Diễn đàn</a></h3>
                                       	</li>
                                    </ul>
                                </div>
                            <?php endif; ?>
                        </div>
                    </div>
                </div>
            </div>
                    